package view;

public class RulesetLoadFrame extends AbstractTextFieldFrame
{	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2280057204448908640L;

	/**
	 * C'tor
	 * Define the frame
	 */
	public RulesetLoadFrame()
	{	    
	    super("Ruleset", "Enter the ruleset to load id:");
	}

	/**
	 * Action performed by finish button press:
	 * load the relevant ruleset to two tables 
	 */
	protected void finishAction()
	{
		Settings.ruleset = textFiled.getText();

		RulesAdvancedTable.currentInRulesAdvancedTable.build();
		RulesAdvancedTable.currentOutRulesAdvancedTable.build();
		
		RulesAdvancedFrame.currentRulesAdvancedFrame.isCurrentRuleSet(false);
		dispose();
	}
}